查询与用户授权记录(openid)
通过openid查询用户授权信息
请求参数 | 类型 | 描述 |
---|---|---|
openid | string | 用户标识 |
query | object | 声明请求的查询参数 |
service_id | string | 服务ID |
appid | string | 公众号id |
php
$instance->v3->payscore->permissions->openid->_openid_->getAsync([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'query' => [
'service_id' => '2002000000000558128851361561536',
'appid' => 'wxd678efh567hg6787',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
php
$instance->chain('v3/payscore/permissions/openid/{openid}')->getAsync([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'query' => [
'service_id' => '2002000000000558128851361561536',
'appid' => 'wxd678efh567hg6787',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
php
$instance['v3/payscore/permissions/openid/{openid}']->getAsync([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'query' => [
'service_id' => '2002000000000558128851361561536',
'appid' => 'wxd678efh567hg6787',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
php
$response = $instance->v3->payscore->permissions->openid->_openid_->get([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'query' => [
'service_id' => '2002000000000558128851361561536',
'appid' => 'wxd678efh567hg6787',
],
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
php
$response = $instance->chain('v3/payscore/permissions/openid/{openid}')->get([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'query' => [
'service_id' => '2002000000000558128851361561536',
'appid' => 'wxd678efh567hg6787',
],
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
php
$response = $instance['v3/payscore/permissions/openid/{openid}']->get([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'query' => [
'service_id' => '2002000000000558128851361561536',
'appid' => 'wxd678efh567hg6787',
],
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
返回字典 | 类型 | 描述 |
---|---|---|
service_id | string | 服务id |
appid | string | 公众号id |
mchid | string | 商户号 |
openid | string | 用户标识 |
authorization_code | string | 授权协议号 |
cancel_authorization_time | string | 最近一次解除授权时间 |
authorization_success_time | string | 最近一次授权成功时间 |
user_risk_level | number | 用户分层 |
risk_level_version | number | 分层版本 |